package cn.edu.sgu.www.mhxysy.service.prop.impl;

import cn.edu.sgu.www.mhxysy.entity.prop.BindState;
import cn.edu.sgu.www.mhxysy.mapper.prop.BindStateMapper;
import cn.edu.sgu.www.mhxysy.service.prop.BindStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class BindStateServiceImpl implements BindStateService {

    private final BindStateMapper bindStateMapper;

    @Autowired
    public BindStateServiceImpl(BindStateMapper bindStateMapper) {
        this.bindStateMapper = bindStateMapper;
    }

    @Override
    public List<BindState> selectAll() {
        return bindStateMapper.selectList(null);
    }

    @Override
    public BindState selectById(Integer id) {
        return bindStateMapper.selectById(id);
    }

}